/*
 * Copyright (c) 2023 Cshoo Org. All Rights Reserved.
 */

package org.cshoo.tattoo.authorize.domain.repository;

import org.cshoo.tattoo.authorize.domain.po.GroupRoleRelation;
import org.springframework.data.repository.CrudRepository;

import javax.transaction.Transactional;

/**
 * @author 杨翼
 * @since 1.0
 */
public interface IGroupRoleRelationRepository extends CrudRepository<GroupRoleRelation, Long> {

    /**
     * 删除群组角色关系
     *
     * @param groupId 群组id
     * @param roleId  角色id
     */
    @Transactional
    void deleteGroupRoleRelationByGroupIdAndRoleId(Long groupId, Long roleId);

}
